package com.mnxc.gxa.service;

import com.mnxc.gxa.dto.QueryDeptDTO;
import com.mnxc.gxa.dto.QueryUserDTO;
import com.mnxc.gxa.dto.Result;
import com.mnxc.gxa.entity.Dept;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mnxc
 * @since 2023-06-29
 */
public interface IDeptService extends IService<Dept> {

    Result getTree();
    Result getAll();

    Result getByCondition(Integer page, Integer pageSize, QueryDeptDTO query);

    Result updateDept(Dept dept);

    Result deleteDept(Dept dept);

    Result saveDept(Dept dept);

    Result freezeDept(Dept dept);

    Result active(Dept dept);

    Result operateByIds(List<Long> ids);

    Result operate_freezeByIds(List<Long> ids);

    Result operate_deleteByIds(List<Long> ids);

}
